#include <stdio.h>
#include <time.h>

int main(int argc, char *argv){

//	FILE *img;
//	int i=536870912*8; /*Image is 1GB. so i broke it in to two. one sixe is 536870912bytes*/
//	char * buffer;

//	img=fopen("/etc/xen/Ubuntu.img","b"); /* Opens the file in binary*/
//
//	if(img==NULL){
//		printf("Cannot open input file \n");
//	
//	}else{
//		printf("Opened input file at %p \n", (void *)&img);
//		printf("Blah %d \n",*img);
//		FILE blockone = /*I got stuck at this point:(*/
//
//	}
	time_t start, end;
	double dif;
	time(&start);

	system(" split -b 4096k /home/nirandi/Xen/Dapper.img /home/nirandi/Xen/Dapper/");
	time(&end);
	dif= difftime(end,start);
	printf("time to split %.2lf seconds \n",dif);

}
